@model IEnumerable<PP.Models.CmsItem>

@{
    ViewBag.Title = "Index";
}

<h2>Pages Admin</h2>

<table>
    <tr>
        <th></th>
        <th>
            Page Name
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Index", "Content", new { slug=item.Slug }, null) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
			@item.Slug
        </td>
    </tr>
}

</table>


